'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post("/login",controller.login.index)
  router.post("/register",controller.register.index)
  router.post("/collection",controller.collection.index)
  router.get("/collect",controller.collect.index)
  router.post("/singer",controller.singer.index)
  router.get("/singercollect",controller.singercollect.index)
  router.post("/playmusic",controller.playMusic.index)
  router.get("/play",controller.play.index)
  router.post("/musiccollect",controller.musiccollect.index)
  router.get("/music",controller.music.index)
};
